23ee1e9bdb4088353c78946431a2037f0764f415,ikasaneip/dashboard/war/src/main/java/org/ikasan/dashboard/ui/replay/panel/ReplayStatusPanel.java,ReplayStatusPanel,init,#,156

Before Change


        });
		
		formLayout.addComponent(replayButton, 0, 4, 1, 4);
		formLayout.setComponentAlignment(replayButton, Alignment.MIDDLE_CENTER);
		
		this.bar.setWidth("40%");	
		this.bar.setImmediate(true);

After Change


		this.bar.setVisible(false);
		
		formLayout.addComponent(bar);
		formLayout.setComponentAlignment(bar, Alignment.MIDDLE_LEFT);
		
		Label moduleCountLabel = new Label("Number of events to replay:");
		moduleCountLabel.setSizeUndefined();
		
		formLayout.addComponent(moduleCountLabel, 0, 1);
		formLayout.setComponentAlignment(moduleCountLabel, Alignment.MIDDLE_RIGHT);
		
		TextField moduleCount = new TextField();
		
		if(this.replayEvents != null)
		{
			moduleCount.setValue(Integer.toString(this.replayEvents.size()));
		}
		else
		{
			moduleCount.setValue("0");
		}
		
		moduleCount.setReadOnly(true);
		moduleCount.setWidth("80%");
		formLayout.addComponent(moduleCount, 1, 1);
		
		
		Label targetServerLabel = new Label("Target server:");
		targetServerLabel.setSizeUndefined();
		
		formLayout.addComponent(targetServerLabel, 0, 2);
		formLayout.setComponentAlignment(targetServerLabel, Alignment.MIDDLE_RIGHT);
		
		this.initialiseTargetServerCombo();
		
		this.targetServerComboBox.setWidth("80%");
		this.targetServerComboBox.setRequired(true);
		this.targetServerComboBox.setRequiredError("A target server is required!");
		targetServerComboBox.setValidationVisible(false);
		formLayout.addComponent(this.targetServerComboBox, 1, 2);
		
		Label commentLabel = new Label("Comment:");
		commentLabel.setSizeUndefined();
		
		formLayout.addComponent(commentLabel, 0, 3);
		formLayout.setComponentAlignment(commentLabel, Alignment.TOP_RIGHT);
		
		comments = new TextArea();
		comments.setWidth("80%");
		comments.setRows(4);
		comments.setRequired(true);
		comments.addValidator(new StringLengthValidator(
	            "You must supply a comment!", 1, 2048, false));
		comments.setValidationVisible(false);         
		comments.setRequiredError("A comment is required!");
		comments.setNullSettingAllowed(false);
		
		formLayout.addComponent(comments, 1, 3);
		
		GridLayout buttonsLayout = new GridLayout(2, 1);
		
		final Button replayButton = new Button("Replay");
		replayButton.addStyleName(ValoTheme.BUTTON_SMALL);
		replayButton.setImmediate(true);
		replayButton.setDescription("Replay events.");
		
		final Button cancelButton = new Button("Cancel");
		cancelButton.addStyleName(ValoTheme.BUTTON_SMALL);
		cancelButton.setImmediate(true);
		cancelButton.setDescription("Cancel replay action!");
		cancelButton.setVisible(false);
		
		buttonsLayout.addComponent(replayButton);
		buttonsLayout.addComponent(cancelButton);
		
		final ExecutorService executorService = Executors